package com.ruoyi.tasks.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 核酸任务超时CRUD对象 t_nucleic_acid_tasks
 * 
 * @author ruoyi
 * @date 2022-10-05
 */
public class NucleicAcidTasks extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    private Long id;

    /** 任务名 */
    @Excel(name = "任务名")
    private String task;

    /** 楼栋名 */
    @Excel(name = "楼栋名")
    private String buildingName;

    /** 小区名字 */
    @Excel(name = "小区名字")
    private String rqName;

    /** 状态 0未开始 1进行中 2已完成 */
    @Excel(name = "状态 0未开始 1进行中 2已完成")
    private String state;

    /** 住户姓名 */
    @Excel(name = "住户姓名")
    private String householdName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTask(String task) 
    {
        this.task = task;
    }

    public String getTask() 
    {
        return task;
    }
    public void setBuildingName(String buildingName) 
    {
        this.buildingName = buildingName;
    }

    public String getBuildingName() 
    {
        return buildingName;
    }
    public void setRqName(String rqName) 
    {
        this.rqName = rqName;
    }

    public String getRqName() 
    {
        return rqName;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setHouseholdName(String householdName) 
    {
        this.householdName = householdName;
    }

    public String getHouseholdName() 
    {
        return householdName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("task", getTask())
            .append("buildingName", getBuildingName())
            .append("rqName", getRqName())
            .append("state", getState())
            .append("householdName", getHouseholdName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .toString();
    }
}
